Changeset abf2dfd in mainline for abi/include/abi/fourcc.h


Ignore:
Timestamp:
2015-08-18T17:52:25Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6a8ce16
Parents:
b688fd8
Message:

preparations for interface types

File:
1 moved

Legend:

Unmodified
Added
Removed
  • abi/include/abi/fourcc.h

    rb688fd8 rabf2dfd  
    3333 */
    3434
    35 #ifndef LIBC_FOURCC_H_
    36 #define LIBC_FOURCC_H_
    37 
    38 #include <libarch/common.h>
    39 
    40 typedef uint32_t fourcc_t;
     35#ifndef ABI_FOURCC_H_
     36#define ABI_FOURCC_H_
    4137
    4238#define FOURCC(a, b, c, d) \
     
    4440            (((UINT32_T) (c)) << 16) | (((UINT32_T) (d)) << 24))
    4541
     42#define CC_COMPACT(a) \
     43        ((((UINT32_T) (a)) & 0x7c) >> 2)
     44
     45#define FOURCC_COMPACT(a, b, c, d) \
     46        ((CC_COMPACT(a) << 12) | (CC_COMPACT(b) << 17) | \
     47            (CC_COMPACT(c) << 22) | (CC_COMPACT(d) << 27))
     48
    4649#endif
    4750
Note: See TracChangeset for help on using the changeset viewer.