All of lore.kernel.org
 help / color / mirror / Atom feed
* source code
@ 2015-04-01 16:24 Linda
  2015-04-01 16:30 ` Julien Grall
  0 siblings, 1 reply; 11+ messages in thread
From: Linda @ 2015-04-01 16:24 UTC (permalink / raw)
  To: xen-devel, Wei Liu, Julien Grall

Hi all,

     The following functions should compute the union, intersection and 
difference of two bitmaps.
     Please review the code.  Thank you.

Sincerely,

Linda Jacobson

int libxl_bitmap_union(libxl_ctx *ctx, libxl_bitmap *union_bitmap, 
libxl_bitmap *bitmap1, libxl_bitmap *bitmap2)
{
     int size;
     int rc;

     GC_INIT(ctx);

// if bitmaps aren't the same size, union should be size of larger bit map
     size = (bitmap1->size > bitmap2->size) ? bitmap1->size : bitmap2->size;

     libxl_bitmap_init(union_bitmap);
     rc = libxl_bitmap_alloc(ctx, union_bitmap, size);
     if (rc)
     {
         // I'm following the coding standards here.  First goto I've 
written in decades.
         goto out;
     }

     for (int bit = 0; bit < (size * 8); bit++)
     {
         // libxl_bitmap_test returns 0 if past end of bitmap
         // if the bit is set in either bitmap, set it in their union
         if (libxl_bitmap_test(bitmap1, bit))
         {
             libxl_bitmap_set(union_bitmap, bit);
         }
         else if (libxl_bitmap_test(bitmap2, bit))
         {
             libxl_bitmap_set(union_bitmap, bit);
         }
     }

out:
     GC_FREE;
     return rc;
}

int libxl_bitmap_intersection (libxl_ctx *ctx, libxl_bitmap 
*union_bitmap, libxl_bitmap *bitmap1, libxl_bitmap *bitmap2)
{
     int size;
     int rc;

     GC_INIT(ctx);

// if bitmaps aren't the same size, intersection should be size of 
smaller bit map
     size = (bitmap1->size > bitmap2->size) ? bitmap2->size : bitmap1->size;

     libxl_bitmap_init(union_bitmap);
     rc = libxl_bitmap_alloc(ctx, union_bitmap, size);
     if (rc)
     {
         goto out;
     }

     for (int bit = 0; bit < (size * 8); bit++)
     {
         // libxl_bitmap_test returns 0 if past end of bitmap
         // if the bit is set in both bitmaps, set it in their intersection
         if (libxl_bitmap_test (bitmap1, bit) && libxl_bitmap_test 
(bitmap2, bit) )
         {
             libxl_bitmap_set (intersection_bitmap, bit);
         }
     }

out:
     GC_FREE;
     return rc;
}
int libxl_bitmap_difference(libxl_ctx *ctx, libxl_bitmap *union_bitmap, 
libxl_bitmap *bitmap1, libxl_bitmap *bitmap2)
{
     int size;
     int rc;

     GC_INIT(ctx);

// if bitmaps aren't the same size, difference should be size of larger 
bit map
     size = (bitmap1->size > bitmap2->size) ? bitmap1->size : bitmap2->size;

     libxl_bitmap_init(union_bitmap);
     rc = libxl_bitmap_alloc(ctx, union_bitmap, size);
     if (rc)
     {
         goto out;
     }

     for (int bit = 0; bit < (size * 8); bit++)
     {
         /* libxl_bitmap_test returns 0 if past end of bitmap
          if the bit is set in one bitmap and not the other, set it in 
their difference
         NOTE:  if one bit map is larger, this will result in all bits 
being set past the size of the smaller bitmap;  if this is not
         the desired behavior, please let me know
         */

         if (libxl_bitmap_test (bitmap1, bit) && (!libxl_bitmap_test 
(bitmap2, bit)) )
         {
             libxl_bitmap_set (difference_bitmap, bit);
         }
     }

out:
     GC_FREE;
     return rc;
}

^ permalink raw reply	[flat|nested] 11+ messages in thread
* SOURCE CODE
@ 2017-11-06 13:13 Ronak Shah
  2017-11-06 23:07 ` carl hansen
  0 siblings, 1 reply; 11+ messages in thread
From: Ronak Shah @ 2017-11-06 13:13 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 544 bytes --]

Hello to the great developers of the most used bootloaders. It's really
great and prestigious writing to you people.
First of all, I would like to thank you guys for the development of GRUB,
which makes our life comfortable(at least for me :D ).
I wanted to have the complete source code of GRUB bootloader.
Can I know if I could get the source code and could you help me with it?
Actually couldn't get the clear picture of what is there in those GitHub
repositories, so wanted to contact you directly.

Thank You

-Ronak Shah
(+91) 9590036801

[-- Attachment #2: Type: text/html, Size: 807 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Source code
@ 2011-10-04 18:11 Sankar
  2011-10-04 19:47 ` Gustavo Padovan
  0 siblings, 1 reply; 11+ messages in thread
From: Sankar @ 2011-10-04 18:11 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 131 bytes --]

Hi,

I am trying to download the source code of oFono. Looks like the link is
down.  Can some one pls help

Thanks,
Sankar.

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 147 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Source Code
@ 2010-09-07 14:27 Kishore kumar
  2010-09-07 14:51 ` Pasi Kärkkäinen
  0 siblings, 1 reply; 11+ messages in thread
From: Kishore kumar @ 2010-09-07 14:27 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 229 bytes --]

Where can I get the Source code of XEN hypervisor...???
can anybody help please..

-- 
regards
Kishore kumar
BE Computer Science
CIT, Coimbatore

"Nature created neither servants nor masters. I want neither to rule or be
ruled."

[-- Attachment #1.2: Type: text/html, Size: 289 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Source code
@ 2005-05-19  6:25 ivo
  2005-05-19  6:25 ` Sebastian Henschel
  2005-05-19  6:25 ` ivo
  0 siblings, 2 replies; 11+ messages in thread
From: ivo @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors


Hello Sebastian,

The community of the lm_sensors [1] have intrest in the source code of the
DSDT database system for there purposes. We have a configuration file that
should differentiate between all different chips busses and protocols.

The DSDT system looks alike and only needs some modification to get it to
work properly for our purposes.

I dont know if you are the person to address this issue to. If you have an
other sugestion please let me know.


Gr ovis



[1] http://secure.netroedge.com/~lm78/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-11-06 23:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-01 16:24 source code Linda
2015-04-01 16:30 ` Julien Grall
  -- strict thread matches above, loose matches on Subject: below --
2017-11-06 13:13 SOURCE CODE Ronak Shah
2017-11-06 23:07 ` carl hansen
2011-10-04 18:11 Source code Sankar
2011-10-04 19:47 ` Gustavo Padovan
2010-09-07 14:27 Source Code Kishore kumar
2010-09-07 14:51 ` Pasi Kärkkäinen
2005-05-19  6:25 Source code ivo
2005-05-19  6:25 ` Sebastian Henschel
2005-05-19  6:25 ` ivo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.