__builtin_setb

Purpose

Sets boolean extension.

This built-in function is valid only when -qarch(-mcpu) is set to utilize the POWER9™ technology.

Prototype

long long __builtin_setb (signed long long a, signed long long b);

Usage

The function compares the two parameters and returns the result:

  • If a is smaller than b, the result is -1.
  • If a is larger than b, the result is 1.
  • If a is equal to b, the result is 0.


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us