Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
cca47fbb
Commit
cca47fbb
authored
Nov 23, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cdh_cidToCix added
parent
aa430f86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
src/lib/co/src/co_cdh.h
src/lib/co/src/co_cdh.h
+11
-9
No files found.
src/lib/co/src/co_cdh.h
View file @
cca47fbb
/**
* Proview $Id: co_cdh.h,v 1.2
5 2007-01-18 07:49
:00 claes Exp $
* Proview $Id: co_cdh.h,v 1.2
6 2007-11-23 14:34
:00 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -82,21 +82,23 @@ typedef enum {
//! Get volume identity for type identity.
#define cdh_TidToVid(tid) ((tid) >> 16)
//! Get class identity for class index
#define cdh_cixToCid( Vid, Cix) (0 + (Vid << 16) + (Cix << 3))
#define cdh_cixToCid( Vid, Cix) (0 + ((Vid) << 16) + ((Cix) << 3))
//! Get class index from class identity.
#define cdh_cidToCix( Cid) (((Cid) >> 3) & 0xfff)
//! Get type identity for type index.
#define cdh_tixToTid( Vid, Tyg, Tix) (0 + (
Vid << 16) + (1 << 15) + (Tyg << 11) + Tix
)
#define cdh_tixToTid( Vid, Tyg, Tix) (0 + (
(Vid) << 16) + (1 << 15) + ((Tyg) << 11) + (Tix)
)
//! Get object index for class index.
#define cdh_cixToOix( Cix, Bix, Aix) (0 + (1 << 31) + (
Cix << 18) + (Bix << 15) + Aix
)
#define cdh_cixToOix( Cix, Bix, Aix) (0 + (1 << 31) + (
(Cix) << 18) + ((Bix) << 15) + (Aix)
)
//! Get object index for type index.
#define cdh_tixToOix( Tyg, Tix) (0 + (1 << 31) + (1 << 30) + (
Tyg << 26) + (Tix
<< 15))
#define cdh_tixToOix( Tyg, Tix) (0 + (1 << 31) + (1 << 30) + (
(Tyg) << 26) + ((Tix)
<< 15))
//! Get object index for body index.
#define cdh_oixToBix( Oix) ((pwr_eBix)((
Oix
>> 15) & 7))
#define cdh_oixToBix( Oix) ((pwr_eBix)((
(Oix)
>> 15) & 7))
//! Get class index for object index.
#define cdh_oixToCix( Oix) ((
Oix
>> 18) & 0xfff)
#define cdh_oixToCix( Oix) ((
(Oix)
>> 18) & 0xfff)
//! Get attribute index for object index.
#define cdh_oixToAix( Oix) (
Oix
& 0xfff)
#define cdh_oixToAix( Oix) (
(Oix)
& 0xfff)
//! Check if type id is a class id
#define cdh_tidIsCid( Tid) ((
Tid
& (1 << 15)) == 0)
#define cdh_tidIsCid( Tid) ((
(Tid)
& (1 << 15)) == 0)
//! Smallest value of volume identity for user volumes
#define cdh_cUserVolMin (0 + ((pwr_tVolumeId)0 << 24) + (1 << 16) + (1 << 8) + 1)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment