Results 1 to 2 of 2

Thread: Why does OpenCL define 'bool' but does not define '_Bool'?

  1. #1
    Junior Member
    Join Date
    Apr 2009

    Why does OpenCL define 'bool' but does not define '_Bool'?


    Standard C99 defines '_Bool' type.
    But '_Bool' is not listed on 'Table 6.1' of opencl-1.0.43.pdf.
    Instead, 'bool' type is listed on Table 6.1.
    According to description of 'bool' at Table6.1,
    behavior of standard C99's '_Bool' and OpenCL's 'bool' are same.

    Why does OpenCL define the 'bool' type?

  2. #2
    Junior Member
    Join Date
    Sep 2009

    Re: Why does OpenCL define 'bool' but does not define '_Bool'?

    I'm guessing here that the rationale was that without the legacy code to worry about that C99 had they might as well give it the sensible name that would have been used if C had bool from the start.

Similar Threads

  1. #define XA_VIDEOPROFILE_MPEG4_ ? ((XAuint32) 0x00000010)
    By x40 in forum OpenMAX AL - Discussion and questions
    Replies: 1
    Last Post: 03-27-2012, 02:25 PM
  2. How to define a function that processes N-vectors ?
    By ksi in forum OpenCL - parallel programming of heterogeneous systems
    Replies: 1
    Last Post: 12-08-2009, 09:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts