different padding!!

Hello,
I have two data with different padding. For example, source with two byte boundary and destination with four byte bounday. Now we have 13 bytes to be copied from source to destination. We have to copy 13 bytes only. So lenght of source will be 14 bytes( lst byte don’t care) and destination will be 16 bytes( last three bytes don’t care). While copying we should copy only one byte and not all. Can anybody give me optimized logic for doing this???

Thanks is advance and early responce will be appreciated…

Gn


Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

It totally escapes as to what this has to do with kernel mode development. I
would use RtlMoveMemory and tell the professor to take a hike. But then I’m
a curmudgeon and was probably writing code when the professor was still in
diapers. :slight_smile:

Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@Broadstor.com
xxxxx@inland.net

-----Original Message-----
From: Born for Challenge [mailto:xxxxx@rediffmail.com]
Sent: Thursday, June 07, 2001 2:28 PM
To: NT Developers Interest List
Subject: [ntdev] different padding!!

Hello,
I have two data with different padding. For example, source with two byte
boundary and destination with four byte bounday. Now we have 13 bytes to be
copied from source to destination. We have to copy 13 bytes only. So lenght
of source will be 14 bytes( lst byte don’t care) and destination will be 16
bytes( last three bytes don’t care). While copying we should copy only one
byte and not all. Can anybody give me optimized logic for doing this???

Thanks is advance and early responce will be appreciated…

Gn


Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com


You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> I have two data with different padding. For example, source with two byte
boundary and destination with four byte bounday. Now we have 13 bytes to be
copied from source to destination. We have to copy 13 bytes only. So lenght
of source will be 14 bytes( lst byte don’t care) and destination will be 16
bytes( last three bytes don’t care). While copying we should copy only one
byte and not all. Can anybody give me optimized logic for doing this???

Thanks is advance and early responce will be appreciated…

Based upon this post’s user name and coupled with the http:// at the end of
the post, I would say this borders on (if isn’t absolutely) a spam message.
It wouldn’t surprise me if this has been posted to a variety of development
lists (including this one)… Sorry if my griping is inappropriate…

Thomas “Rick” Tewell
Ligos Corporation


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> I have two data with different padding. For example, source with two byte
boundary and destination with four byte bounday. Now we have 13 bytes to be
copied from source to destination. We have to copy 13 bytes only. So lenght
of source will be 14 bytes( lst byte don’t care) and destination will be 16
bytes( last three bytes don’t care). While copying we should copy only one
byte and not all. Can anybody give me optimized logic for doing this???

Thanks is advance and early responce will be appreciated…

Based upon this post’s user name and coupled with the http:// at the end of
the post, I would say this borders on (if isn’t absolutely) a spam message.
It wouldn’t surprise me if this has been posted to a variety of development
lists (including this one)… Sorry if my griping is inappropriate…

Thomas “Rick” Tewell
Ligos Corporation


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

This mail list is for NT Development issues – kernel or usermode code.

The only problem I see with the original question is that it is extremely
confusing as to what the poster is trying to achieve…

Regards,

Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com

-----Original Message-----
From: Gary Little [mailto:xxxxx@Broadstor.com]
Sent: Thursday, June 07, 2001 3:27 PM
To: NT Developers Interest List
Subject: [ntdev] RE: different padding!!

It totally escapes as to what this has to do with kernel mode development. I would
use RtlMoveMemory and tell the professor to take a hike. But then I’m a curmudgeon
and was probably writing code when the professor was still in diapers. :slight_smile:

-----Original Message-----
From: Born for Challenge [mailto:xxxxx@rediffmail.com]
Sent: Thursday, June 07, 2001 2:28 PM
To: NT Developers Interest List
Subject: [ntdev] different padding!!

Hello,
I have two data with different padding. For example, source with two byte boundary
and destination with four byte bounday. Now we have 13 bytes to be copied from
source to destination. We have to copy 13 bytes only. So lenght of source will be
14 bytes( lst byte don’t care) and destination will be 16 bytes( last three bytes
don’t care). While copying we should copy only one byte and not all. Can anybody
give me optimized logic for doing this???
Thanks is advance and early responce will be appreciated…


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

This is the same guy looking for a job.

Date: 19 Mar 2001 20:44:26 -0000
Author: “Born for Challenge” < mailto:xxxxx xxxxx@rediffmail.com>
Subject: looking for part time job in NT device driver.

Body: Hello all,

I have total five years experience and have very good exposure
to Windows NT kernel level drivers (and and half year experience).
I live in Bay Area, California. I am looking for part time job. I can
work on week ends and evening time. Let me know if any employer
looking for person like me. So please help me to help you.

Many Thanks,

_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http: http://bol.rediff.com

-----Original Message-----
From: Thomas “Rick” Tewell [mailto:rick@1394.com]
Sent: Thursday, June 07, 2001 3:48 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

> I have two data with different padding. For example, source with two byte
boundary and destination with four byte bounday. Now we have 13 bytes to be
copied from source to destination. We have to copy 13 bytes only. So lenght
of source will be 14 bytes( lst byte don’t care) and destination will be 16
bytes( last three bytes don’t care). While copying we should copy only one
byte and not all. Can anybody give me optimized logic for doing this???
>
> Thanks is advance and early responce will be appreciated…
>

Based upon this post’s user name and coupled with the http:// at the end of
the post, I would say this borders on (if isn’t absolutely) a spam message.
It wouldn’t surprise me if this has been posted to a variety of development
lists (including this one)… Sorry if my griping is inappropriate…

Thomas “Rick” Tewell
Ligos Corporation


You are currently subscribed to ntdev as: xxxxx@netapp.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></mailto:xxxxx>

I hope that’s not considered to be a bad thing?

-----Original Message-----
From: Jaiswal, Niraj [mailto:xxxxx@netapp.com]
Sent: Thursday, June 07, 2001 4:27 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

This is the same guy looking for a job.

Date: 19 Mar 2001 20:44:26 -0000
Author: “Born for Challenge” < mailto:xxxxx
xxxxx@rediffmail.com>
Subject: looking for part time job in NT device driver.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</mailto:xxxxx>

My point was this mail is not a SPAM as this question has been
posted by a genuine person. Although unrelated to this list.

> Based upon this post’s user name and coupled with the http:// at the end of
> the post, I would say this borders on (if isn’t absolutely) a spam message.

-----Original Message-----
From: Sander Pool [mailto:xxxxx@rhapsodynetworks.com]
Sent: Thursday, June 07, 2001 4:52 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

I hope that’s not considered to be a bad thing?

-----Original Message-----
From: Jaiswal, Niraj [mailto:xxxxx@netapp.com]
Sent: Thursday, June 07, 2001 4:27 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

This is the same guy looking for a job.

Date: 19 Mar 2001 20:44:26 -0000
Author: “Born for Challenge” < mailto:xxxxx xxxxx@rediffmail.com>
Subject: looking for part time job in NT device driver.


You are currently subscribed to ntdev as: xxxxx@netapp.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</mailto:xxxxx>

Hmmm, he may be the jerk I criticized for his illiterate style of writing.
He objected when I told him I wouldn’t print it off and use it for toilette
paper.

Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@Broadstor.com
xxxxx@inland.net

-----Original Message-----
From: Jaiswal, Niraj [mailto:xxxxx@netapp.com]
Sent: Thursday, June 07, 2001 4:27 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

This is the same guy looking for a job.

Date: 19 Mar 2001 20:44:26 -0000
Author: “Born for Challenge” < mailto:xxxxx
xxxxx@rediffmail.com>
Subject: looking for part time job in NT device driver.

Body: Hello all,

I have total five years experience and have very good exposure
to Windows NT kernel level drivers (and and half year experience).
I live in Bay Area, California. I am looking for part time job. I can
work on week ends and evening time. Let me know if any employer
looking for person like me. So please help me to help you.

Many Thanks,

_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http: http://bol.rediff.com

-----Original Message-----
From: Thomas “Rick” Tewell [mailto:rick@1394.com]
Sent: Thursday, June 07, 2001 3:48 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

> I have two data with different padding. For example, source with two byte
boundary and destination with four byte bounday. Now we have 13 bytes to be
copied from source to destination. We have to copy 13 bytes only. So lenght
of source will be 14 bytes( lst byte don’t care) and destination will be 16
bytes( last three bytes don’t care). While copying we should copy only one
byte and not all. Can anybody give me optimized logic for doing this???
>
> Thanks is advance and early responce will be appreciated…
>

Based upon this post’s user name and coupled with the http:// at the end of
the post, I would say this borders on (if isn’t absolutely) a spam message.
It wouldn’t surprise me if this has been posted to a variety of development
lists (including this one)… Sorry if my griping is inappropriate…

Thomas “Rick” Tewell
Ligos Corporation


You are currently subscribed to ntdev as: xxxxx@netapp.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></mailto:xxxxx>

If you mean using this list as a network for a job hunt, I don’t think so,
but I don’t think it’s appropriate to plaster the list with resumes.

However, the original posting you referred to bordered on illiterate drivel.
Personally, I would make sure that such a posting was the most pristine
English that I could make it. I can only imagine what his resume looked
like, and fearing, that I certainly wouldn’t hand it to my boss because of
what his email told me. He’s careless and or cannot write in the English
language, and therefore not a fitting candidate for my recommendation.

But I digress …

Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@Broadstor.com
xxxxx@inland.net

-----Original Message-----
From: Jaiswal, Niraj [mailto:xxxxx@netapp.com]
Sent: Thursday, June 07, 2001 5:09 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

My point was this mail is not a SPAM as this question has been
posted by a genuine person. Although unrelated to this list.

> Based upon this post’s user name and coupled with the http:// at the end
of
> the post, I would say this borders on (if isn’t absolutely) a spam
message.

-----Original Message-----
From: Sander Pool [mailto:xxxxx@rhapsodynetworks.com]
Sent: Thursday, June 07, 2001 4:52 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

I hope that’s not considered to be a bad thing?

-----Original Message-----
From: Jaiswal, Niraj [mailto:xxxxx@netapp.com]
Sent: Thursday, June 07, 2001 4:27 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

This is the same guy looking for a job.

Date: 19 Mar 2001 20:44:26 -0000
Author: “Born for Challenge” < mailto:xxxxx
xxxxx@rediffmail.com>
Subject: looking for part time job in NT device driver.


You are currently subscribed to ntdev as: xxxxx@netapp.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</mailto:xxxxx>

I heard a strange rumor the other day that there were these things called
“countries” where their indigenous peoples speak languages other than English!
NTDEV is further rumored to be in communication with these alien lands. 'Course,
don’t believe it myself.

Sarcasm aside, I have to agree that this particular person’s English was at 4th
Grade level. But some of the best programmers come from Russia, Hungary, India
and elsewhere where English is not the primary language. Keep them away from the
resource file (or review everything closely), and you can have a very prolific
coder at your disposal. Oh, and their English impoves the more they are exposed
to it – imagine that!

One must applaud the person for at least trying and making posts in English, as is
netiquette for this list.

Regards,

Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com

-----Original Message-----
From: Gary Little [mailto:xxxxx@Broadstor.com]
Sent: Thursday, June 07, 2001 5:39 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

If you mean using this list as a network for a job hunt, I don’t think so, but I
don’t think it’s appropriate to plaster the list with resumes.

However, the original posting you referred to bordered on illiterate drivel.
Personally, I would make sure that such a posting was the most pristine English
that I could make it. I can only imagine what his resume looked like, and fearing,
that I certainly wouldn’t hand it to my boss because of what his email told me.
He’s careless and or cannot write in the English language, and therefore not a
fitting candidate for my recommendation.

-----Original Message-----
From: Jaiswal, Niraj [mailto:xxxxx@netapp.com]
Sent: Thursday, June 07, 2001 5:09 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

My point was this mail is not a SPAM as this question has been
posted by a genuine person. Although unrelated to this list.

> Based upon this post’s user name and coupled with the http:// at the end of
> the post, I would say this borders on (if isn’t absolutely) a spam message.

-----Original Message-----
From: Sander Pool [mailto:xxxxx@rhapsodynetworks.com]
Sent: Thursday, June 07, 2001 4:52 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

I hope that’s not considered to be a bad thing?
-----Original Message-----
From: Jaiswal, Niraj [mailto:xxxxx@netapp.com]
Sent: Thursday, June 07, 2001 4:27 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

This is the same guy looking for a job.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I agree. I can’t recall hearing anything that pedantic in a long time. I’d
like to see the English speakers in this forum do as well in say, Russian,
Hindi or Japanese. Let’s cut the guy some slack.

-----Original Message-----
From: Paul Bunn [mailto:xxxxx@UltraBac.com]
Sent: Friday, June 08, 2001 9:43 AM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

I heard a strange rumor the other day that there were these things called
“countries” where their indigenous peoples speak languages other than
English!
NTDEV is further rumored to be in communication with these alien lands.
'Course,
don’t believe it myself.

Sarcasm aside, I have to agree that this particular person’s English was at
4th
Grade level. But some of the best programmers come from Russia, Hungary,
India
and elsewhere where English is not the primary language. Keep them away
from the
resource file (or review everything closely), and you can have a very
prolific
coder at your disposal. Oh, and their English impoves the more they are
exposed
to it – imagine that!

One must applaud the person for at least trying and making posts in English,
as is
netiquette for this list.

Regards,

Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com

-----Original Message-----
From: Gary Little [mailto:xxxxx@Broadstor.com]
Sent: Thursday, June 07, 2001 5:39 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

If you mean using this list as a network for a job hunt, I don’t think so,
but I
don’t think it’s appropriate to plaster the list with resumes.

However, the original posting you referred to bordered on illiterate drivel.
Personally, I would make sure that such a posting was the most pristine
English
that I could make it. I can only imagine what his resume looked like, and
fearing,
that I certainly wouldn’t hand it to my boss because of what his email told
me.
He’s careless and or cannot write in the English language, and therefore not
a
fitting candidate for my recommendation.

-----Original Message-----
From: Jaiswal, Niraj [mailto:xxxxx@netapp.com]
Sent: Thursday, June 07, 2001 5:09 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

My point was this mail is not a SPAM as this question has been
posted by a genuine person. Although unrelated to this list.

> Based upon this post’s user name and coupled with the http:// at the end
of
> the post, I would say this borders on (if isn’t absolutely) a spam
message.

-----Original Message-----
From: Sander Pool [mailto:xxxxx@rhapsodynetworks.com]
Sent: Thursday, June 07, 2001 4:52 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

I hope that’s not considered to be a bad thing?
-----Original Message-----
From: Jaiswal, Niraj [mailto:xxxxx@netapp.com]
Sent: Thursday, June 07, 2001 4:27 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

This is the same guy looking for a job.


You are currently subscribed to ntdev as: xxxxx@legato.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I completely agree that this list is not meant for job hunting.

Niraj

-----Original Message-----
From: Gary Little [mailto:xxxxx@Broadstor.com]
Sent: Thursday, June 07, 2001 5:39 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

If you mean using this list as a network for a job hunt, I don’t think so, but I don’t think it’s appropriate to plaster the list with resumes.

However, the original posting you referred to bordered on illiterate drivel. Personally, I would make sure that such a posting was the most pristine English that I could make it. I can only imagine what his resume looked like, and fearing, that I certainly wouldn’t hand it to my boss because of what his email told me. He’s careless and or cannot write in the English language, and therefore not a fitting candidate for my recommendation.

But I digress …

Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@Broadstor.com
xxxxx@inland.net

-----Original Message-----
From: Jaiswal, Niraj [mailto:xxxxx@netapp.com]
Sent: Thursday, June 07, 2001 5:09 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

My point was this mail is not a SPAM as this question has been
posted by a genuine person. Although unrelated to this list.

> Based upon this post’s user name and coupled with the http:// at the end of
> the post, I would say this borders on (if isn’t absolutely) a spam message.

-----Original Message-----
From: Sander Pool [mailto:xxxxx@rhapsodynetworks.com]
Sent: Thursday, June 07, 2001 4:52 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

I hope that’s not considered to be a bad thing?

-----Original Message-----
From: Jaiswal, Niraj [mailto:xxxxx@netapp.com]
Sent: Thursday, June 07, 2001 4:27 PM
To: NT Developers Interest List
Subject: [ntdev] Re: different padding!!

This is the same guy looking for a job.

Date: 19 Mar 2001 20:44:26 -0000
Author: “Born for Challenge” < mailto:xxxxx xxxxx@rediffmail.com>
Subject: looking for part time job in NT device driver.


You are currently subscribed to ntdev as: xxxxx@netapp.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@netapp.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</mailto:xxxxx>