IBM Support

IV61656: INLINED MEMSET IMPROVEMENT FOR CONSTANT SIZE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • For memset() cases where the size/number of characters to write
    is constant, the inlined memset() code that is generated can be
    improved.
    
    
       === TEST CASE ===
    
    void set11(char *start, char c)
    {
      memset(start, c, 19);   // Size value (19) is constant
    }
    

Local fix

Problem summary

  • PROBLEM DESCRIPTION:
    The memset() function uses 2 registers when the compile time
    length is known and it involves more than 1 different sized
    store.  This is a small performance issue.
    
    USERS AFFECTED:
    memset() users
    

Problem conclusion

  • Use the longest value needed to generate for all the stores.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV61656

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-06-19

  • Closed date

    2014-09-26

  • Last modified date

    2014-09-26

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    LI78224

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels

  • RD10 PSY

       UP

[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH2K","label":"XL C for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"13.1"}]

Document Information

Modified date:
01 October 2021