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
    Posts
    6

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

    Hi,

    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
    Posts
    8

    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. Replies: 1
    Last Post: 03-27-2012, 02:25 PM
  2. Replies: 1
    Last Post: 12-08-2009, 10: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
  •